package com.lee.reply.service;

import com.lee.common.model.ArticleReply;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2023-10-06
 * Time: 11:05
 */
public interface IArticleReplyService {
    /**
     * 新增帖子回复
     * @param articleReply
     */
    @Transactional
    void create (ArticleReply articleReply);

    /**
     * 根据帖子 Id 查询回复列表
     * @param articleId 文章 id
     * @return
     */
    List<ArticleReply> selectByArticleId(Long articleId);

}
